package project.dao;

import org.apache.ibatis.annotations.Mapper;
import project.model.Question;

@Mapper
public interface QuestionMapper {

    //创建问题
    public int addQuestion(Question question);
    //根据用户ID获取问题列表
    public Question[] getQuestionListByUserId(int uid);
    //根据问题ID获取问题详情
    public Question getQuestionById(int qid);
    //更新问题
    public int updateQuestion(Question question);
    //删除问题
    public int deleteQuestion(int qid);
}
